package com.vilicode.bean;

import lombok.Data;

@Data
public class Book {
    private Integer bid;
    private String bisbn;
    private String bname;
    private String bauthor;
    private String bpublisher;
    private String bcover;
    private String bimage1;
    private String bimage2;
    private Double bprice;
    private Integer btid;
    private String btname;
    private Integer bstock;
    private String bmark;

    private boolean isScroll;
    private boolean isHot;
    private boolean isNew;

    public boolean getIsScroll(){
        return this.isScroll;
    }
    public boolean getIsHot(){
        return this.isHot;
    }
    public boolean getIsNew(){
        return this.isNew;
    }
    @Override
    public String toString() {
        return "Book{" +
                "bid=" + bid +
                ", bisbn='" + bisbn + '\'' +
                ", bname='" + bname + '\'' +
                ", bauthor='" + bauthor + '\'' +
                ", bpublisher='" + bpublisher + '\'' +
                ", bcover='" + bcover + '\'' +
                ", bimage1='" + bimage1 + '\'' +
                ", bimage2='" + bimage2 + '\'' +
                ", bprice=" + bprice +
                ", btid=" + btid +
                ", btname='" + btname + '\'' +
                ", bstock=" + bstock +
                ", bmark='" + bmark + '\'' +
                '}';
    }
}
